package com.sense.sensedialprehandle.pojo;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Created by Administrator on 2018-12-25.
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class CommonResponse {

    private String code;
    private String msg;
    private Object data;

    public CommonResponse() {
    }

    public CommonResponse(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public CommonResponse(String code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public CommonResponse setCode(String code) {
        this.code = code;
        return this;
    }

    public CommonResponse setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public CommonResponse setData(Object data) {
        this.data = data;
        return this;
    }
}
